package com.zt.serviceImpl;

import java.util.List;

import org.jbpm.taskmgmt.exe.TaskInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;

import com.zt.dao.ILeaveProcessDao;
import com.zt.data.LeaveVo;
import com.zt.data.TaskInstanceTransitionVo;
import com.zt.service.ILeaveService;

@Service("leaveService")
@Transactional(readOnly = true)
public class LeaveServiceImpl implements ILeaveService {
	
	/**
	 * 请假申请
	 * @param leaveVo
	 * @return
	 */
	@Transactional
	public long startLeave(LeaveVo leaveVo){
		return iLeaveProcessDao.startLeave(leaveVo);
	}
	
	
	public List<TaskInstanceTransitionVo> myWaitingList(String actorId) {
		List<TaskInstance> taskInstances = iLeaveProcessDao.myWaitingList(actorId, "请假条");
		return null;
	}
	
	
	@Autowired
	private ILeaveProcessDao iLeaveProcessDao;


	
}
